import Account from "../views/purchaser/childCpn/Account";
import Company from "../views/purchaser/account/Company";
import ChangePhone from "../views/purchaser/account/ChangePhone";
import ChangePassword from "../views/purchaser/account/ChangePassword";
import MyOrder from "../views/purchaser/childCpn/MyOrder";
import All from "../views/purchaser/myOrder/All";
import Message from "../views/purchaser/childCpn/Message";
import NotPay from "../views/purchaser/myOrder/NotPay";
import Payed from "../views/purchaser/myOrder/Payed";


export default [
  {
    path: 'account',
    name: 'Account',
    component: Account,
    meta:{active : '0'},
    redirect: '/buyer/account/company',
    children: [

      {
        path: 'company',
        name: 'Company',
        component: Company,
        meta:{active : '0'},
      },
      {
        path: 'changePhone',
        name: 'ChangePhone',
        component: ChangePhone,
        meta:{active : '0'},
      },
      {
        path: 'changePassword',
        name: 'ChangePassword',
        component: ChangePassword,
        meta:{active : '0'},
      },
    ]
  },
  {
    path: 'myOrder',
    name: 'MyOrder',
    component: MyOrder,
    meta:{active : '1'},
    redirect: '/buyer/myOrder/all',
    children: [
      {
        path: 'all',
        name: 'BuyAll',
        component: All,
        meta:{active : '1'},
      },
      {
        path: 'notPay',
        name: 'BuyNotPay',
        component: NotPay,
        meta:{active : '1'},
      },

      {
        path: 'payed',
        name: 'BuyPayed',
        component: Payed,
        meta:{active : '1'},
      }
    ]
  },
  {
    path: 'message',
    name: 'Message',
    component: Message,
    meta:{active : '2'}
  }
]